﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace InputTool
{
    class CompanyResultDto
    {
        /// <summary>
        /// 结果代码信号  0成功
        /// </summary>
        [JsonProperty("code")]
        public int Code { get; set; }
        /// <summary>
        /// 返回信息    成功：查询成功
        /// </summary>
        [JsonProperty("msg")]
        public string Msg { get; set; }
        /// <summary>
        /// 返回数据
        /// </summary>
        [JsonProperty("data")]
        public DateDto Date { get; set; }
    }

    public class DateDto
    {
        [JsonProperty("total")]
        public int Total { get; set; }

        [JsonProperty("pageTotal")]
        public string PageTotal { get; set; }

        [JsonProperty("detachedCriteria")]
        public string DetachedCriteria { get; set; }

        [JsonProperty("pageNo")]
        public string PageNo { get; set; }

        [JsonProperty("data")]
        public List<InfoDto> Infos { get; set; }

        [JsonProperty("totalPage")]
        public int TotalPage { get; set; }

        [JsonProperty("pageSize")]
        public string PageSize { get; set; }

        [JsonProperty("pageRecord")]
        public int PageRecord { get; set; }

        [JsonProperty("currentPage")]
        public int CurrentPage { get; set; }
    }

    public class InfoDto
    {
        /// <summary>
        /// ID
        /// </summary>
        [JsonProperty("uniscid")]
        public string UniscId { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        [JsonProperty("entname")]
        public string EntName { get; set; }
    }
}
